package com.swfee.qinben.dto.req;

import android.os.Parcel;
import android.os.Parcelable;

import com.swfee.qinben.dto.base.BaseReqDto;

public class HealthMeasureReqDto extends BaseReqDto implements Parcelable {

	private Integer scheduleId;
	private Integer familyId;
	private Integer equipmentId;
	
	

	public Integer getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(Integer scheduleId) {
		this.scheduleId = scheduleId;
	}

	public Integer getFamilyId() {
		return familyId;
	}

	public void setFamilyId(Integer familyId) {
		this.familyId = familyId;
	}

	public Integer getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(Integer equipmentId) {
		this.equipmentId = equipmentId;
	}

	@Override
	public String propsToUrlString() {
		StringBuffer sb = new StringBuffer();
		sb.append("scheduleId=" +  scheduleId)
		.append("&familyId=" +  familyId)
		.append("&equipmentId=" + equipmentId)
		;
		
		return sb.toString();
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(scheduleId);
		dest.writeInt(familyId);
		dest.writeInt(equipmentId);
	}
	
	  public static final Parcelable.Creator<HealthMeasureReqDto> CREATOR = new Parcelable.Creator<HealthMeasureReqDto>() {   
			//重写Creator
			  
			        @Override  
			        public HealthMeasureReqDto createFromParcel(Parcel source) {   
			        	HealthMeasureReqDto m = new HealthMeasureReqDto();   
			            m.scheduleId  = source.readInt();
			            m.familyId  = source.readInt();
			            m.equipmentId  = source.readInt();
			            return m;   
			        }   

			        public HealthMeasureReqDto[] newArray(int size) {   
			        	return new HealthMeasureReqDto[size];      
			        } 
		  };
	
}
